import request from '@/utils/request'

// 列表
export function bannerList(query) {
    return request({
        url: '/framework/banner/list',
        method: 'get',
        params: query
    })
}

// 新增
export function addBanner(data) {
    return request({
        url: '/framework/banner',
        method: 'post',
        data: data
    })
}

// 修改
export function updateBanner(data) {
    return request({
        url: '/framework/banner',
        method: 'put',
        data: data
    })
}

// 删除
export function delBanner(bannerIds) {
    return request({
        url: '/framework/banner/' + bannerIds,
        method: 'delete'
    })
}

export function bannereffect(id, status) {
    return request({
        url: '/framework/banner/effect/' + id + '/' + status,
        method: 'get',
    })
}